local status, saga = pcall(require, "lspsaga")
if (not status) then return end

saga.setup {
  -- server_filetype_map = {
  --   typescript = 'typescript'
  -- }
}
--[[ local lsp_keybinds = {} ]]
--[[ lsp_keybinds.set_keymap = function (bufnr) ]]
    --[[ print("set lsp keymap") ]]
    --[[ -- 跳转到声明 ]]
    --[[ vim.api.nvim_buf_set_keymap(bufnr, "n", "gd", "<cmd>Lspsaga peek_definition<CR>", {silent = true, noremap = true}) ]]
    --[[ -- 跳转到定义 ]]
    --[[ vim.api.nvim_buf_set_keymap(bufnr, "n", "gD", "<cmd>lua vim.lsp.buf.definition()<CR>", {silent = true, noremap = true}) ]]
    --[[ -- 显示注释文档 ]]
    --[[ vim.api.nvim_buf_set_keymap(bufnr, "n", "gh", "<cmd>Lspsaga lsp_finder<CR>", {silent = true, noremap = true}) ]]
    --[[ -- 跳转到实现 ]]
    --[[ vim.api.nvim_buf_set_keymap(bufnr, "n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>", {silent = true, noremap = true}) ]]
    --[[ -- 跳转到引用位置 ]]
    --[[ vim.api.nvim_buf_set_keymap(bufnr, "n", "gr", "<cmd>Lspsaga rename<CR>", {silent = true, noremap = true}) ]]
    --[[ -- 以浮窗形式显示错误 ]]
    --[[ vim.api.nvim_buf_set_keymap(bufnr, "n", "go", "<cmd>lua vim.diagnostic.open_float()<CR>", {silent = true, noremap = true}) ]]
    --[[ vim.api.nvim_buf_set_keymap(bufnr, "n", "gp", "<cmd>lua vim.diagnostic.goto_prev()<CR>", {silent = true, noremap = true}) ]]
    --[[ vim.api.nvim_buf_set_keymap(bufnr, "n", "gn", "<cmd>lua vim.diagnostic.goto_next()<CR>", {silent = true, noremap = true}) ]]
    --[[ vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>cd", "<cmd>Lspsaga show_cursor_diagnostics<CR>", {silent = true, noremap = true}) ]]
    --[[ vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>cd", "<cmd>Lspsaga show_line_diagnostics<CR>", {silent = true, noremap = true}) ]]
    --[[ vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>ca", "<cmd>Lspsaga code_action<CR>", {silent = true, noremap = true}) ]]
    --[[ vim.api.nvim_buf_set_keymap(bufnr, "v", "<leader>ca", "<cmd>Lspsaga code_action<CR>", {silent = true, noremap = true}) ]]
--[[ end ]]
--[[ return lError executing Lua callback: ...pack\packer\start\mason.nvim/lua/mason-registry/init.lua:80: Cannot find package "cds-lsp".sp_keybinds; ]]
